package com.wtwd.device.dao;

import com.wtwd.device.model.entity.SportModeInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mjy
 * @date 2021/08/31
 * @description
 */
@Mapper
public interface AppSportRecordMapper {

    List<SportModeInfo> getSportRecordListByDeviceId(@Param("deviceId") Long deviceId);

    Integer addSportRecord(SportModeInfo sportRecord);

    SportModeInfo getLastSportRecord(@Param("deviceId") Long deviceId);

    Integer clearSportRecordByDate(@Param("date") String date);

    Integer deleteSportRecordByDeviceId(@Param("id") Long id);
}
